package crackerx.game.level;

import crackerx.game.graphics.GameBitMaps;
import crafex.engine.graphics.GraphicTools;
import crafex.engine.level.Level;
import crafex.engine.level.LevelHandler;
import crafex.engine.system.Command;
import crafex.engine.tools.Button;
import crafex.engine.tools.IntVertex2D;

public class MainMenu extends Level{
	
	private static final long serialVersionUID = 2706580952376679405L;

	public MainMenu(IntVertex2D bounds){
		super(bounds);
		LevelHandler.setPlaying(true);
		background = null;
		clearGUI();
		addToGUI(new Button(GraphicTools.makeTextButtonImage("play", GameBitMaps.six_letter_button, GameBitMaps.purple_text, 
				new IntVertex2D(6, 6), false), (int) (bounds.getX() * .25),
				(int) (bounds.getY() * .25), new Command(this, "gotoGameOptions")));
	}
	
	public void gotoGameOptions(){
		LevelHandler.setLevel(new GameOptions(Level.bounds, this));
	}
}